- 
		Home
	
 
	- 
GiveWP – Donation Plugin and Fundraising Platform
 
- 
3.4.1
 
- 
Code
 
- 
Classes
 
-  DonorRepository 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											50 | 
										
																			
											| Dependencies | 
											12 | 
										
																			
											| Dependents | 
											1 | 
										
																	
							 
													
								
																			
											| Total lines | 
											490 | 
										
																			
											| Lines of code | 
											275 | 
										
																			
											| Logical lines of code | 
											113 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											112 | 
										
																			
											| Methods | 
											17 | 
										
																			
											| Properties | 
											1 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 17
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| insert() | 
									A  | 
																	43 | 
													8 | 
													49 | 
							
					
				| update() | 
									A  | 
																	47 | 
													9 | 
													33 | 
							
					
				| getDonorType() | 
									S  | 
																	49 | 
													6 | 
													32 | 
							
					
				| updateLegacyColumns() | 
									S  | 
																	55 | 
													4 | 
													19 | 
							
					
				| updateAdditionalEmails() | 
									S  | 
																	58 | 
													3 | 
													18 | 
							
					
				| delete() | 
									S  | 
																	56 | 
													2 | 
													19 | 
							
					
				| validateDonor() | 
									S  | 
																	68 | 
													3 | 
													7 | 
							
					
				| getDonorLatestDonationDate() | 
									S  | 
																	59 | 
													2 | 
													15 | 
							
					
				| getByEmail() | 
									S  | 
																	62 | 
													2 | 
													13 | 
							
					
				| getAdditionalEmails() | 
									S  | 
																	63 | 
													2 | 
													11 | 
							
					
				| getByAdditionalEmail() | 
									S  | 
																	63 | 
													2 | 
													11 | 
							
					
				| prepareQuery() | 
									S  | 
																	54 | 
													1 | 
													23 | 
							
					
				| getByWpUserId() | 
									S  | 
																	68 | 
													2 | 
													8 | 
							
					
				| queryById() | 
									S  | 
																	76 | 
													1 | 
													4 | 
							
					
				| getById() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| getCoreDonorMeta() | 
									S  | 
																	69 | 
													1 | 
													7 | 
							
					
				| getDonorsCount() | 
									S  | 
																	80 | 
													1 | 
													3 |